export interface Tree {
  [key: string]: any
}

export interface Persons {
  value: string;
  deptId: string;
  deptName: string;
  label: string;
}

export const departments: Tree[] = [
  {
    id: 'dep01',
    label: '研发部',
    children: [
      {
        id: 'dep01-01',
        label: '开发组',
        children: [
          {
            id: 'dep01-01-01',
            label: '前端组',
            children: [
              {
                id: 'dep01-01-01-01',
                label: 'Android组',
              },
              {
                id: 'dep01-01-01-02',
                label: 'Ios组',
              },
              {
                id: 'dep01-01-01-03',
                label: 'Web组',
              },
              {
                id: 'dep01-01-01-04',
                label: '小程序组',
              },
            ],
          },
          {
            id: 'dep01-01-02',
            label: 'JAVA组',
          },
          {
            id: 'dep01-01-03',
            label: 'DOTNET组',
          },
          {
            id: 'dep01-01-04',
            label: 'Python组',
          },
        ],
      },
      {
        id: 'dep01-02',
        label: '测试组',
        children: [
          {
            id: 'dep01-02-01',
            label: 'Web测试组',
          },
          {
            id: 'dep01-02-02',
            label: '移动测试组',
          },
          {
            id: 'dep01-02-03',
            label: 'AI体验组',
          },
          {
            id: 'dep01-02-04',
            label: '自动化测试组',
          },
        ],
      },
      {
        id: 'dep01-03',
        label: '产品组',
      },
      {
        id: 'dep01-04',
        label: 'UI组',
      },
      {
        id: 'dep01-05',
        label: '运维组',
      },
    ],
  },
  {
    id: 'dep02',
    label: '行政部',
    children: [
      {
        id: 'dep02-01',
        label: '人事部',
        children: [
          {
            id: 'dep02-01-01',
            label: '招聘部',
          },
          {
            id: 'dep02-01-02',
            label: '入职部',
          },
          {
            id: 'dep02-01-03',
            label: '离职部',
          },
          {
            id: 'dep02-01-04',
            label: '考勤组',
          },
        ],
      },
      {
        id: 'dep02-02',
        label: '前台部',
        children: [
          {
            id: 'dep02-02-01',
            label: '接待组',
          },
          {
            id: 'dep02-02-02',
            label: '服务组',
          },
          {
            id: 'dep02-03-03',
            label: '卫生组',
          },
        ],
      },
    ],
  },
  {
    id: 'dep03',
    label: '财务组',
    children: [
      {
        id: 'dep03-01',
        label: '薪资组',
      },
      {
        id: 'dep03-02',
        label: '税务组',
      },
      {
        id: 'dep03-03',
        label: '票据组',
      },
      {
        id: 'dep03-04',
        label: '预算组',
      },
      {
        id: 'dep03-05',
        label: '外出组',
      },
    ],
  },
  {
    id: 'dep04',
    label: '法务组',
  },
  {
    id: 'dep05',
    label: '销售部',
    children: [
      {
        id: 'dep05-01',
        label: '销售一部',
      },
      {
        id: 'dep05-02',
        label: '销售二部',
      },
      {
        id: 'dep05-03',
        label: '销售三部',
      },
      {
        id: 'dep05-04',
        label: '销售四部',
      },
    ],
  },
]

export const persons:Persons[] = [
  {
    value: '0001',
    deptId: 'dep01-01-02',
    deptName: 'JAVA组',
    label: '张三',
  },
  {
    value: '0002',
    deptId: 'dep01-01-02',
    deptName: 'JAVA组',
    label: '李四',
  },
  {
    value: '0003',
    deptId: 'dep01-01-03',
    deptName: 'DOTNET组',
    label: '王五',
  },
  {
    value: '0004',
    deptId: 'dep01-01-03',
    deptName: 'DOTNET组',
    label: '赵六',
  },
  {
    value: '0005',
    deptId: 'dep01-01-01-04',
    deptName: '小程序组',
    label: '齐大牛',
  },
  {
    value: '0006',
    deptId: 'dep01-01-01-01',
    deptName: 'Android组',
    label: '可欣',
  },
  {
    value: '0007',
    deptId: 'dep01-01-01-03',
    deptName: 'Web组',
    label: '章程',
  },
  {
    value: '0008',
    deptId: 'dep01-01-01-02',
    deptName: 'Ios组',
    label: '张欢乐',
  },
  {
    value: '0009',
    deptId: 'dep01-01-04',
    deptName: 'Python组',
    label: '张三',
  },
  {
    value: '0010',
    deptId: 'dep01-04',
    deptName: 'UI组',
    label: '张美丽',
  },
  {
    value: '0011',
    deptId: 'dep02-01-01',
    deptName: '招聘部',
    label: '孙权',
  },
  {
    value: '0012',
    deptId: 'dep02-01-02',
    deptName: '入职部',
    label: '刘备',
  },
  {
    value: '0013',
    deptId: 'dep02-01-03',
    deptName: '离职部',
    label: '关羽',
  },
  {
    value: '0014',
    deptId: 'dep02-01-04',
    deptName: '考勤组',
    label: '张飞',
  },
  {
    value: '0015',
    deptId: 'dep03-01',
    deptName: '薪资组',
    label: '曹操',
  },
]
